{% extends "base.html" %}

{% block title %}Top-rated snippets{% endblock %}

{% block content_header %}Top-rated snippets{% endblock %}

{% block main_content %}
<ol>
{% for snippet in object_list %}
<li><a href="{{ snippet.get_absolute_url }}">{{ snippet.title }}</a> (<a href="{{ snippet.language.get_absolute_url }}">{{ snippet.language.name }}</a>) by <a href="/users/{{ snippet.author.username }}/">{{ snippet.author.username }}</a></li>
{% endfor %}
</ol>
{% endblock %}


{% block sidebar %}

<p>You're looking at the top-rated snippets currently on the site; {% if user.is_authenticated %}if you'd like to contribute, just click the ratings link in the sidebar of a particular snippet's page; you can rate any snippet "useful" or "not useful"{% else %}if you'd like to contribute, <a href="/accounts/register/">sign up for an account</a> and you'll be able to rate any snippet you see{% endif %}.</p>

{% endblock %}